<template>
	<view class="order-details">
		<view class="od_head">
			<view class="od_head_t">待使用</view>
			<view class="od_head_b">勋章加成：+61%</view>
		</view>
		<view class="od_info">
			<image class="odi_l" src="https://kayouyou-1257308601.cos.ap-guangzhou.myqcloud.com/86312f9f0c994be39a294bcc164ac2e4.png" mode="aspectFill"></image>
			<view class="odi_r">
				<view class="odi_r_title">单人下午茶 奶茶+西多士+老盐柠檬巴啦啦</view>
				<view class="odi_r_other">
					<view class="o_price">
						￥<text>19.2</text>
					</view>
					<view class="o_refun">申请退款</view>
				</view>
			</view>
		</view>
		<view class="coupon_code">
			<view class="coupon_code_head">
				<text>券码信息</text>
				<!-- <text>购买之日起30天内有效</text> -->
				<text>已使用</text>
			</view>
			<view class="cc_code_num">
				9857 6584 2654
			</view>
<!-- 			<view class="qr_code">
				<image  src="https://kayouyou-1257308601.cos.ap-guangzhou.myqcloud.com/86312f9f0c994be39a294bcc164ac2e4.png" mode=""></image>
			</view>
			<view class="cc_num">
				<text>9857 6584 2654</text>
				<image src="/static/my/copy01.png" mode="widthFix"></image>
			</view>
			<view class="cc_but">未使用</view> -->
		</view>
		<view class="main_order">
			<view class="main_order_title">实付金额：￥ <text>19.9</text> </view>
			<view class="main_shop_line"></view>
			<view class="main_order_list">
				<view class="mol_item">
					<view class="mol_item_l">订单号</view>
					<text>：</text>
					<view class="mol_item_r">25448521254232255</view>
				</view>
				<view class="mol_item">
					<view class="mol_item_l">手机号</view>
					<text>：</text>
					<view class="mol_item_r">18652412589</view>
				</view>
				<view class="mol_item">
					<view class="mol_item_l">下单时间</view>
					<text>：</text>
					<view class="mol_item_r">2023-06-19 18:30</view>
				</view>
				<view class="mol_item">
					<view class="mol_item_l">消费时间</view>
					<text>：</text>
					<view class="mol_item_r">--</view>
				</view>
				<view class="mol_item">
					<view class="mol_item_l">数量</view>
					<text>：</text>
					<view class="mol_item_r">1</view>
				</view>

			</view>
		</view>
		<view class="main_shop">
			<view class="main_shop_header">
				<view class="h_l">日光甜铺国贸店</view>
				<view class="h_r">适用门店(2) <image src="/static/right_img.png" mode=""></image> </view>
			</view>
			<view class="main_shop_line"></view>
			<view class="main_shop_list">
				<view class="l_li">
					<image src="/static/index/time.png" mode=""></image>
					<text class="l_li_text">周一至周日  10:30-21:30</text>
				</view>
				<view class="l_li">
					<image src="/static/index/address.png" mode=""></image>
					<text class="l_li_text ellipseHide">海口市龙华区126号世贸大厦一楼商铺</text>
					<view class="l_li_copy">
						<image src="/static/my/copy.png" mode="widthFix"></image>
						<text class="copy_word">复制地址</text>
					</view>
				</view>
				<view class="l_li l_li_last">
					<image src="/static/index/tel.png" mode=""></image>
					<text class="l_li_text ">13989568596</text>
					<view class="phone_img" @click="tel">
						<image src="/static/index/paradise/phone.png" mode="widthFix"></image>
					</view>
				</view>
			</view>
		</view>
		<view class="main_rule">
			<view class="main_rule_title">使用规则</view>
			<view class="main_shop_line"></view>
			<view class="main_rule_content">消费券当日有效。零消费门槛，可在领券的平台线上购买年货商品或订购外卖，每张消费券仅限本人单笔交易一次使用，不可兑换现金，不找零。仅适用于收货地为北京地区的订单。</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			tel() {
				uni.makePhoneCall({
					phoneNumber: '', //电话号码
					success: function(e) {
						console.log(e);
					},
					fail: function(e) {
						console.log(e);
					}
				})
			},
		}
	}
</script>

<style scoped>
	page{
		background-color: #F2F5F8;
	}
	view{
		box-sizing: border-box;
	}
	.order-details{
		width: 100%;
		min-height: 296rpx;
		background: url('@/static/wallet/od_bg.png') no-repeat;
		background-size: 100% 296rpx;
		padding-bottom: 140rpx;
	}
	.od_head{
		width: 100%;
		padding: 36rpx 54rpx 38rpx 54rpx;
	}
	.od_head_t{
		font-size: 52rpx;
		line-height: 72rpx;
		color: #FFFFFF;
		mix-blend-mode: normal;
		margin-bottom: 8rpx;
	}
	.od_head_b{
		font-size: 30rpx;
		line-height: 42rpx;
		color: #FFFFFF;
		mix-blend-mode: normal;
	}
	
	.od_info{
		width: 710rpx;		
		background: #FFFFFF;
		border-radius: 20rpx;
		margin: 0 auto;
		margin-bottom: 30rpx;
		padding: 26rpx 30rpx;
		display: flex;
		flex-direction: row;
	}
	.od_info .odi_l{
		width: 142rpx;
		height: 142rpx;
		margin-right: 36rpx;
		border-radius: 16rpx;
	}
	.odi_r{
		flex: 1;
	}
	.odi_r_title{
		font-size: 30rpx;
		color: #222222;
		margin-bottom: 12rpx;
		font-weight: bold;
	}
	.odi_r_other{
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
	.o_price{
		color: #FF3A3A;
		font-size: 30rpx;
	}
	.o_price text{
		font-size: 50rpx;
		font-weight: bold;
	}
	.o_refun{
		border: 2rpx solid #B9B9B9;
		border-radius: 200rpx;
		font-size: 22rpx;
		color: #222222;
		padding: 8rpx 26rpx;
	}
	.coupon_code{
		width: 710rpx;
		padding: 30rpx 30rpx 40rpx 30rpx;
		background: #FFFFFF;
		border-radius: 20rpx;
		margin: 0 auto;

	}
	.coupon_code_head{
		display: flex;
		align-items: center;
		justify-content: space-between;
	}
	.coupon_code_head text:nth-child(1){
		font-weight: 600;
		font-size: 34rpx;
		color: #222222;
	}
	.coupon_code_head text:nth-child(2){
		font-size: 30rpx;
		color: #444444;
	}
	.cc_code_num{
		font-size: 36rpx;
		line-height: 50rpx;
		margin-top: 36rpx;
		text-decoration-line: line-through;
		
		color: #999999;
	}
	.qr_code{
		width: 442rpx;
		height: 442rpx;
		margin: 0 auto;
		margin-top: 62rpx;
	}
	.qr_code image{
		width: 100%;
		height: 100%;
	}
	.cc_num{
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: row;
		margin-top: 42rpx;
	}
	.cc_num text{
		color: #222222;
		font-size: 36rpx;
	}
	.cc_num image{
		margin-left: 18rpx;
		width: 36rpx;
		height: 34rpx;
	}
	.cc_but{
		border: 2rpx solid #B9B9B9;
		border-radius: 200rpx;
		font-size: 30rpx;
		color: #666666;
		padding: 2rpx 26rpx;
		margin: 0 auto;
		width: fit-content;
		margin-top: 24rpx;
	}
	/* 订单详情 */
	.main_order{
		width: 710rpx;
		border-radius: 20rpx;
		background: #FFFFFF;
		padding: 30rpx 20rpx;
		margin: 0 auto;
		margin-top: 30rpx;
	}
	.main_order_title{
		font-size: 34rpx;
		color: #222222;
		margin-bottom: 20rpx;
		padding: 0 10rpx;
		font-weight: bold;
	}
	.main_order_title text{
		font-size: 44rpx;
	}
	.main_order_list{
		width: 100%;
		padding: 0 10rpx;
	}
	.mol_item{
		display: flex;
		flex-direction: row;
		align-items: center;
		font-size: 30rpx;
		color: #555555;
		margin-bottom: 16rpx;
	}
	.mol_item_l{
		width: 4em;        text-align-last: justify;
	}
	.mol_item:last-child{
		margin-bottom: unset;
	}
	.mol_item_r{
		flex: 1;
	}
	/*使用规则 */
	.main_rule {
		width: 710rpx;
		border-radius: 20rpx;
		background: #FFFFFF;
		padding: 30rpx 20rpx;
		margin: 0 auto;
	}
	
	.main_rule_title {
		font-size: 34rpx;
		color: #222222;
		margin-bottom: 20rpx;
		padding: 0 10rpx;
		font-weight: bold;
	}
	
	.main_rule_content {
		font-size: 30rpx;
		color: #555555;
		line-height: 50rpx;
		padding: 0 10rpx;
		word-break: break-all;
	}
	/* end */
	/* 店铺信息 */
	.main_shop{
		width: 710rpx;
		border-radius: 20rpx;
		background: #FFFFFF;
		display: flex;
		flex-direction: column;
		font-size: 30rpx;
		color: #333333;
		padding: 36rpx 20rpx 30rpx 20rpx;
		margin: 24rpx auto;
	}
	.main_shop_header{
		width: 100%;
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		margin-bottom: 24rpx;
		padding: 0 10rpx;
	}
	.h_l{
		color: #222222;
		font-size: 34rpx;
		font-weight: bold;
		flex: 1;
	}
	.h_r{
		background: #F0F0F0;
		border-radius: 4rpx;
		padding: 2rpx 8rpx 2rpx 12rpx;
		margin-left: 20rpx;
		font-size: 24rpx;
		color: #333333;
		
	}
	.h_r image{
		width: 10rpx;
		height: 16rpx;
		margin-left: 12rpx;
	}
	.item_t_r{
		flex: 1;
		overflow: hidden;
	}
	.main_shop_line{
		width: 100%;
		border-bottom: 2rpx solid #D8D8D8;
		margin-bottom: 30rpx;
	}
	.main_shop_list{
		width: 100%;
		padding: 0 10rpx;
	}
	.l_li{
		display: flex;
		flex-direction: row;
		align-items: center;
		margin-bottom: 10rpx;
	}
	.l_li image{
		width: 30rpx;
		height: 30rpx;
		margin-right: 14rpx;
	}
	.l_li_text{
		font-size: 24rpx;
		color: #9C9EA4;
		flex: 1;
	}
	.l_li_last{
		margin-bottom: 0;
		position: relative;
	}
	.phone_img{
		width: 48rpx;
		height: 48rpx;
		position: absolute;
		right: 0;
		bottom: -16rpx;
	}
	.phone_img image{
		width: 100%;
		height: 100%;
	}
	.l_li_copy{
		color: #1053FF;
		font-size: 26rpx;
		display: flex;
		flex-direction: row;
		align-items: center;
	}
	.l_li_copy image{
		width: 26rpx;
		height: 36rpx;
		margin-right: 10rpx;
		margin-left: 46rpx;
	}
	/* end */
</style>
